import React,{Component} from 'react';
import {StyleSheet,View,Text,ViewPropTypes,TouchableOpacity,Image} from 'react-native';
//验证函数
import PropTypes from 'prop-types';

import {Actions} from 'react-native-router-flux';

const styles = StyleSheet.create({
	container:{
		flex:1,
		justifyContent:'center',
		alignItems:'center',
		backgroundColor:'transparent',
		borderWidth:2,
		borderColor:'red',
	},
	button:{
		width:50,
		height:50,

	}
});
export default class DrawerContent extends Component{
	constructor(props) {
	  super(props);
	  this.state = {};
	}
	static propTypes = {
		name:PropTypes.string,
		sceneStyle:ViewPropTypes.style,
		title:PropTypes.string,
	}
	static contextTypes = {
		drawer:PropTypes.object,
	}
	render(){
		return (
			<View style={styles.container}>
				<Text>Title:按钮</Text>
				<TouchableOpacity  onPress={Actions.tab_3}>
					<Image
						style={styles.button}
						source={require('../../assets/images/shezhi.png')}
						/>
						<Text>按钮1</Text>
				</TouchableOpacity>
			</View>
		)
	}
}